import Vue from 'vue'

import VueRouter from 'vue-router'
// 注册路由组件
import Register from '@/views/register'
Vue.use(VueRouter);
// 定义路由规则
const routes = [
    {path:'/register',component:Register}
]
const router = new VueRouter({routes});
export default router